import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import echarts from 'echarts'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n
import '@/styles/index.scss' // global css
import App from './App'
import axios from 'axios'
import router from './router'
import store from './store'
import '@/icons' // icon
import '@/permission' // permission control
import _g from './utils/global/global'
import HTTP from  './utils/http'

Vue.use(ElementUI, { locale })
Vue.prototype.$echarts = echarts
Vue.prototype.$axios = axios
Vue.config.productionTip = false
Vue.prototype.GLOBAL = _g
Vue.prototype.HTTP = HTTP

window.HTTP = HTTP
window._g = _g

new Vue({
  el: '#app',
  axios,
  router,
  store,
//   watch: {

//     $route(to, from) {
//          console.log(this.$route.matched,'123');
//     }
// },

  render: h => h(App)
})
